export const dataScopeOptions = [
  { value: 0, label: "无数据权限" },
  { value: 1, label: "全部数据权限" },
  { value: 2, label: "本部门及以下数据权限" },
  { value: 4, label: "本部门数据权限" },
  { value: 8, label: "自定数据权限" },
  { value: 16, label: "仅本人数据权限" }
]

export function getDataScopeLabel(value){
  const info = dataScopeOptions.find(item=>{
    return item.value === value
  })
  return info ? info.label: value
}
